angular.module('app').controller('orderdetailCtrl', 
['$scope', '$rootScope', 'http', 'stateV',
function($scope, $rootScope, http, stateV) 
{
	$scope.detail = stateV.get();
	console.log($scope.detail)

	$scope.update = function(){
		console.log($scope.detail)
		var reqUrl = globalConfig.web + '/order/update';
		http.post(reqUrl, $scope.detail, function(data, status){
			if(status==200)
				alert('修改成功')
			else
				alert('填写内容有误')
		})
	}
	
	
}]);